-
Notifications
You must be signed in to change notification settings - Fork 274
config(amazonq): Decouple LSP from vector index creation; start LSP by default #4978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6c73a33 to
0e53a01
Compare
| if (isIndexSuccess) isIndexComplete.set(true) | ||
| return@launch | ||
| if (CodeWhispererSettings.getInstance().isProjectContextEnabled()) { | ||
| val isIndexSuccess = index() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you need to call index() regardless of whether projectContext is enabled or not. If enabled, call it with config 'all' otherwise config 'default'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nah this one doesn't have the latest lsp API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's still the old one which only does chat vector
...unity/src/software/aws/toolkits/jetbrains/services/amazonq/project/ProjectContextProvider.kt
Show resolved
Hide resolved
|
@rli i will add test as a followup |
preparation work for #4976
implementation of aws/aws-toolkit-vscode#5702
Description
Current LSP start is coupled with vector index creation, this should be decoupled. We will be having new releases in the LSP to build some other indexes for everyone very soon ( not computation expensive as vector index), therefore we need to start LSP by default. The vector indexing, as a computational expensive index, will be only enabled if opt-in.
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.